#include "Tile.h"
#include "../SGD Wrappers/SGD_GraphicsManager.h"

Tile::Tile(short locX, short locY, unsigned char Layer, unsigned short ImageID, 
		unsigned char CollisionTrigger, std::string triggerInit, bool IsCollidable)
{

	 m_nLocationX = locX;
	 m_nLocationY = locY;
	 m_nLayer = Layer;
	 m_nTileImageID = ImageID;
	 m_nTileCollisionTriggerID = CollisionTrigger;
	 m_szTriggerInit = triggerInit;
	 m_nIsCollidable = IsCollidable;


}
Tile::Tile()
{

}

Tile::~Tile()
{

}
//SGD::Rectangle Tile::CellAlgorithm(int id)const
//{
//	SGD::Rectangle cell;
//
//	cell.left = (float)((id % m_nMapWidth) * m_nTileWidth);
//	cell.top  = (float)((id / m_nMapWidth) * m_nTileHeight);
//
//	cell.right = cell.left + m_nTileWidth;
//	cell.bottom = cell.top + m_nTileHeight;
//
//	return cell;
//
//}
void Tile::Render()
{
	//SGD::GraphicsManager* pGraphics = SGD::GraphicsManager::GetInstance();





	
}

short Tile::getLocX(void)
{
	return m_nLocationX;
}
void Tile::setLocX(short locationX)
{
	m_nLocationX = locationX;
}

short Tile::getLocY(void)
{
	return m_nLocationY;
}
void Tile::setLocY(short locationY)
{
	m_nLocationY = locationY;
}

unsigned char Tile::getLayer(void)
{
	return m_nLayer;

}
void Tile::setLayer(unsigned char layer)
{
	m_nLayer = layer;
}

unsigned short Tile::getTileID(void)
{
	return m_nTileImageID;
}
void Tile::setTileID(unsigned short TileID)
{
	m_nTileImageID = TileID;
}

unsigned char Tile::getCollisionTriggerID(void)
{
	return m_nTileCollisionTriggerID;
}
void Tile::setCollisionTriggerID(unsigned char CollisionTrigger)
{
	m_nTileCollisionTriggerID = CollisionTrigger;
}

std::string Tile::getTriggerInit(void)
{
	return m_szTriggerInit;
}
void Tile::setTriggerInit(std::string TriggerInit)
{
	m_szTriggerInit = TriggerInit;
}

bool Tile::getIsCollidable(void)
{
	return m_nIsCollidable;
}
void Tile::setIsCollidable(bool isCollidable)
{
	m_nIsCollidable = isCollidable;
}